package pers.hubb.enumeration;

/**
 * @author hubb
 * @Description HTTP请求方式的枚举类
 * @Date 2018/4/21 22:32
 */
public enum HttpMethodEnum {
	//GET
	GET(1, "GET"),
	//POST
	POST(2, "POST"),
	//PUT
	PUT(3, "PUT"),
	//DELETE
	DELETE(4, "DELETE");

	private int code;
	private String msg;

	HttpMethodEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
